<template>
    <div class="index">
        <div class="product">
            <h2>拣货明细</h2>
            <!-- <div class="btn">
                <el-button type="primary" icon="el-icon-plus" size="mini" @click="addReorder">新增重订货规则</el-button>
            </div> -->
            <el-table :data="tableData" style="width: 90%; margin: 5px auto 30px;" border>
                <el-table-column prop="name" label="产品名称">
                </el-table-column>
                <el-table-column prop="orderedQty" label="订单数量">
                </el-table-column>
                <el-table-column prop="productQty" label="实际库存">
                </el-table-column>
                <el-table-column prop="note" label="备注">
                </el-table-column>
                <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
                    <template slot-scope="scope">
                        <el-button size="mini" type="text" icon="el-icon-edit" @click="ReorderUpdate(scope.row)"
                            v-hasPermi="['system:stock:edit']">修改</el-button>
                        <el-button size="mini" type="text" icon="el-icon-delete" @click="ReorderDel(scope.row)"
                            v-hasPermi="['system:stock:delete']">删除</el-button>
                    </template>
                </el-table-column> -->

            </el-table>
        </div>
    </div>
</template>
<script>
import { getPickingDetail } from "@/api/system/picking";
export default {
    data() {
        return {
            tableData:[],
            result: {},
            // result2: {}
        };
    },
    mounted() {
        // 通过$route.query将传过来的值接收;
        let id = this.$route.query.listId;
        // this.tableData = this.$route.query.manageList;
        this.getList(id);
    },
    methods: {
        getList(id) {
            getPickingDetail(id).then(res => {
                // console.log(res);
                this.tableData = res.data
                // this.result2 = res.data[1]
                // console.log(this.result);
                // console.log(this.result2);

            })
        }
    },
    components: {},
    props: {},
    watch: {},
    computed: {},
    created() { },
};
</script>
<style lang="scss"  scoped>
// @import "~@/assets/styles/detail.scss";
.index {
    // background: #f9f9f9;
    border: 1px transparent solid;


}
.product {
    width: 80%;
    background: #fff;
    border: 1px rgb(232, 228, 228) solid;
    // box-shadow: 0 3px 20px -15px #000000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin: 10px auto;
}
.detail {
    background: #fff;
    border: 1px rgb(232, 228, 228) solid;
    // box-shadow: 0 3px 20px -15px #000000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin: 10px auto;
    width: 80%;

    .tab {
        width: 90%;
        margin: 20px auto;
    }

}

h2 {
    text-align: center;
}


// .detail {
//     margin: 30px auto;
//     width: 80%;
//     .tab {
//         width: 80%;
//         margin: 20px auto;
//     }

// }

// .my-content {
//     background: #1f1e1e;
// }


// ::v-deep .el-descriptions-item__label.is-bordered-label {
//     font-weight: bold;
//     color: #6d6a6a;
//     background: #fdfcfc;
// }
</style>